package com.ttxs.fileformathandling.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ttxs.apicommon.model.entity.UserApiInfo;

/**
* @author cwt
* @description 针对表【user_api_info(用户接口关联表)】的数据库操作Service
* @createDate 2023-06-09 20:22:31
*/
public interface UserApiInfoService extends IService<UserApiInfo> {
    void validUserApiInfo(UserApiInfo userApiInfo, boolean add);


    boolean validExist(long userId,long apiId);

    /**
     * 统计接口调用次数
     * @param apiId api id
     * @param userId 用户id
     * @return
     */
    boolean invokeCount(long apiId,long userId);
}
